package com.guet.imageAndVideo.mapper;

import com.guet.imageAndVideo.beans.entity.Image;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Li
 * @create 2022-12-19-14:13
 */
@Mapper
public interface ImageMapper {
    void add(@Param("userId") Integer userId, @Param("issueId") Integer issueId, @Param("url") String url);

    Image select(@Param("userId") Integer userId, @Param("imageId") Integer imageId);

    void delete(@Param("userId") Integer userId, @Param("imageId") Integer imageId);

    List<Image> find(Integer userId);
}
